package com.hx.order.domain;

import com.hx.common.annotation.Excel;
import com.hx.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 用户对象 ord_user
 *
 * @author ord
 * @date 2023-05-28
 */
public class User extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 用户id */
    private Long userId;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String name;

    /** 用户性别：0-&gt;男;1-&gt;女; */
    @Excel(name = "用户性别：0-&gt;男;1-&gt;女;")
    private Integer gender;

    /** 用户电话 */
    @Excel(name = "用户电话")
    private String phone;

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setGender(Integer gender)
    {
        this.gender = gender;
    }

    public Integer getGender()
    {
        return gender;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("name", getName())
            .append("gender", getGender())
            .append("phone", getPhone())
            .toString();
    }
}
